package com.young.common;


import com.young.PackageInfo;

public class Constants {
    public static final String APPLICATION_JSON = "application/json; charset=UTF-8";

    public static final String CONTENT_ENCODING = "gzip";

    public static final String CLIENT_VERSION = PackageInfo.class.getPackage().getImplementationVersion();


    /**
     * schedule-client 监听来自 schedule-trigger 发来的该url的请求
     */
    public static final String CLIENT_DO_JOB_SERVER_PATH = "/young/schedule/client/call";

    /**
     * schedule-client 监听来自 schedule-trigger 发来的该url的请求
     */
    public static final String CLIENT_JOB_CHECK_SERVER_PATH = "/young/schedule/client/check";

    /**
     * 业务端执行本地请求后,会请求 schedule-trigger 回调
     */
    public static final String JOB_CALLBACK_URL_FORMATTER = "http://%1$s:%2$s/young/schedule/node/callback";

    /**
     * 业务端请求 schedule-trigger 注册与心跳
     */
    public static final String CLIENT_REGISTRY_URL_FORMATTER = "http://%1$s:%2$s/young/schedule/node/register";


    /**
     * 业务端请求 schedule-trigger 取消注册
     */
    public static final String CLIENT_UNREGISTRY_URL_FORMATTER = "http://%1$s:%2$s/young/schedule/node/unregister";
}
